﻿@model etracks.Web.ResourceReadOnlyViewModel

@using (Html.BeginForm("Edit", "Resource", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="form-group">
        <label for="input_name" class="col-sm-2 control-label">Resource Name</label>
        <div class="col-sm-8">
            <p class="form-control-static">@Model.Name</p>
        </div>
    </div>

    <div class="form-group">
        <label for="input_name" class="col-sm-2 control-label">Resource Alias</label>
        <div class="col-sm-8">
            <p class="form-control-static">@Model.Alias</p>
        </div>
    </div>

    <div class="form-group">
        <label for="input_name" class="col-sm-2 control-label">Resource Type</label>
        <div class="col-sm-8">
            <p class="form-control-static">@DataHelper.IfNull(Model.ResourceType)</p>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-8">
            @Html.ActionLink("Back", "List", "Resource", null, new { @class = "btn btn-default" })
        </div>
    </div>
}